package marmalius.item;

import marmalius.Player;
import marmalius.map.SpawnObject;
import marmalius.map.SpawnType;

public class ItemDrop extends SpawnObject {
	private int itemID;
	private int itemCount;
	private boolean needRemove; //(after removeTime) false => visible, true => remove
	private int removeTime;
	private Player owner;
	
	public ItemDrop(int itemID, int coordX, int coordY, byte heightLevel, int itemCount) {
		this.itemID = itemID;
		this.coordX = coordX;
		this.coordY = coordY;
		this.heightLevel = heightLevel;
		this.itemCount = itemCount;
		needRemove = false;
		type = SpawnType.ITEMDROP;
	}
	
	public int getItemID() { return itemID; }
	public int getItemCount() { return itemCount; }
	public int getRemoveTime() { return removeTime; }
	public boolean needRemove() { return needRemove; }
	public Player getOwner() { return owner; }
	
	public void setRemoveTime(int removeTime) { this.removeTime = removeTime; }
	public void setNeedRemove() { needRemove = true; }
	public void setOwner(Player owner) { this.owner = owner; }
}
